package com.apes.crm.vip.masterdata.model;

import com.apes.framework.jpa.DefaultPersistListener;
import com.apes.framework.jpa.Model;
import com.apes.framework.jpa.comment.Comment;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;

/**
 * 功能：会员级别
 *
 * @author HuJianlin
 * @create 2018-03-15 16:00
 */
@Getter
@Setter
@Entity
@EntityListeners(DefaultPersistListener.class)
@Table(name = VipLabelLevel.CONST_TABLE_NAME)
public class VipLabelLevel extends Model {
    public static final String CONST_TABLE_NAME = "vip_label_level";

    @Id
    @Column(name = "id", length = 16)
    @Comment("会员标签级别编码")
    private String id;  //会员级别编码

    @Column(name = "name", nullable = false, length = 120)
    @Comment("会员标签级别名称")
    private String name; //会员级别名称

    @Column(name = "levels", nullable = false)
    @Comment("级别")
    private int levels = 0;  //级别

}
